//
//  SNKPhotoCollectCell.m
//  SleepNews
//
//  Created by Kavee DJ on 2016/12/17.
//  Copyright © 2016年 Kavee DJ. All rights reserved.
//

#import "SNKPhotoCollectCell.h"
#import "PhotoCollectModel.h"
#import <UIImageView+WebCache.h>

@interface SNKPhotoCollectCell ()

@property (weak, nonatomic) IBOutlet UIImageView *coverImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleL;
@property (weak, nonatomic) IBOutlet UILabel *timeL;


@end

@implementation SNKPhotoCollectCell

- (void)setPhotoCollectModel:(PhotoCollectModel *)photoCollectModel {
    _photoCollectModel = photoCollectModel;
    
    [self.coverImageView sd_setImageWithURL:[NSURL URLWithString:photoCollectModel.image_url] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    _titleL.text = photoCollectModel.title;
    _timeL.text = photoCollectModel.time;
}

@end
